x86-64: allow mapping mmcfg space for high numbered PCI segments
authorJan Beulich <jbeulich@novell.com>
Sat, 27 Aug 2011 11:13:39 +0000 (12:13 +0100)
committerJan Beulich <jbeulich@novell.com>
Sat, 27 Aug 2011 11:13:39 +0000 (12:13 +0100)
commit04d708ca0996d71da691fcbdaf365991de76d824
treed08ab06e3f4f28810eaa6b9a4028a575d83b9f53
parente6492f348bb3fda64b984703943c02622c09f57a
x86-64: allow mapping mmcfg space for high numbered PCI segments

Rather than using the segment number directly when determining the
virtual address for a particular mmconfig block, use the array index
instead. Thus a system with (perhaps significantly) less than 2048 PCI
segments, but with some having numbers beyond 2047 can actually have
all its mmconfig blocks mapped.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/x86_64/mmconfig_64.c